import {WeaTools} from 'ecCom'

// 高级查询条件
export const getMonitorConditionInfo = params => {
    const path = params.offical == "1" ? 'offical' : 'workflow';
    return WeaTools.callApi('/api/'+path+'/monitor/getConditionInfo', 'POST', params);
}
// sessionkey
export const getMonitorSessionkey = params => {
    const path = params.offical == "1" ? 'offical' : 'workflow';
    return WeaTools.callApi('/api/'+path+'/monitor/getSessionkey', 'POST', params);
}
// 获取树
export const getTree = params => {
    const path = params.offical == "1" ? 'offical' : 'workflow';
    return WeaTools.callApi('/api/'+path+'/monitor/getTree', 'POST', params);
}
// 删除
export const deleteWorkflow = params => {
    return WeaTools.callApi('/api/workflow/monitor/deleteworkflow', 'POST', params);
}
// 删除
export const deleteWf = params => {
    return WeaTools.callApi('/api/workflow/monitor/delete', 'POST', params);
}
// 强制归档
export const archivingWf = params => {
    return WeaTools.callApi('/api/workflow/monitor/archiving', 'POST', params);
}
// 流程暂停
export const stopWf = params => {
    return WeaTools.callApi('/api/workflow/monitor/stop', 'POST', params);
}
// 流程启用
export const openpWf = params => {
    return WeaTools.callApi('/api/workflow/monitor/open', 'POST', params);
}
// 流程撤销
export const cancelWf = params => {
    return WeaTools.callApi('/api/workflow/monitor/cancel', 'POST', params);
}
// 强制收回
export const repossessedWf = params => {
    return WeaTools.callApi('/api/workflow/monitor/repossessed', 'POST', params);
}
// 流程干预
export const interventionWf = params => {
    return WeaTools.callApi('/api/workflow/monitor/intervention', 'POST', params);
}
// 日志sessionkey
export const getLogSessionkey = params => {
    return WeaTools.callApi('/api/workflow/monitor/getLogSessionkey', 'POST', params);
}
// 日志condition
export const getLogConditionInfo = params => {
    return WeaTools.callApi('/api/workflow/monitor/getLogConditionInfo', 'POST', params);
}